/* 导航菜单样式 */
nav {
    display: flex;
    align-items: center;
}

nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

nav li {
    position: relative;
    margin: 0 15px;
}

nav a {
    color: #2c3e50;
    text-decoration: none;
    font-size: 16px;
    padding: 10px 5px;
    display: block;
    position: relative;
    transition: color 0.3s ease;
}

nav a:hover {
    color: #007bff;
}

/* 选中状态样式 */
nav a.active {
    color: #007bff;
    font-weight: 600;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: #6195FF;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

nav a:hover::after,
nav a.active::after {
    transform: scaleX(1);
}

/* 移动端适配 */
@media (max-width: 768px) {
    nav a {
        font-size: 14px;
        padding: 8px 3px;
    }
    
    nav li {
        margin: 0 10px;
    }
}

/* 搜索框样式 */
.search-box {
    display: flex;
    align-items: center;
    background: #f8f9fa;
    border-radius: 20px;
    padding: 8px 15px;
    margin-left: 20px;
    transition: all 0.3s ease;
}

.search-box:focus-within {
    background: #fff;
    box-shadow: 0 0 0 2px #007bff;
}

.search-box input {
    border: none;
    background: none;
    outline: none;
    padding: 5px;
    font-size: 14px;
    width: 200px;
    color: #2c3e50;
}

.search-box input::placeholder {
    color: #6c757d;
}

.search-box button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    color: #6c757d;
    transition: color 0.3s ease;
}

.search-box button:hover {
    color: #007bff;
}

